home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet internetowy / Rozne / HTTrack 3.40-2 / httrack-3.40-2.exe / {app} / src_win / WinHTTrack / BuildOptions.cpp < prev    next >
C/C++ Source or Header  |  2004-02-14  |  2KB  |  83 lines

  1. // BuildOptions.cpp : implementation file
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "Shell.h"
  6. #include "BuildOptions.h"
  7.  
  8. #ifdef _DEBUG
  9. #define new DEBUG_NEW
  10. #undef THIS_FILE
  11. static char THIS_FILE[] = __FILE__;
  12. #endif
  13.  
  14. // Helper
  15. extern LaunchHelp* HtsHelper;
  16.  
  17.  
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CBuildOptions dialog
  20.  
  21.  
  22. CBuildOptions::CBuildOptions(CWnd* pParent /*=NULL*/)
  23.     : CDialog(CBuildOptions::IDD, pParent)
  24. {
  25.     //{{AFX_DATA_INIT(CBuildOptions)
  26.     m_BuildString = _T("");
  27.     //}}AFX_DATA_INIT
  28. }
  29.  
  30.  
  31. void CBuildOptions::DoDataExchange(CDataExchange* pDX)
  32. {
  33.     CDialog::DoDataExchange(pDX);
  34.     //{{AFX_DATA_MAP(CBuildOptions)
  35.     DDX_Text(pDX, IDC_BuildString, m_BuildString);
  36.     //}}AFX_DATA_MAP
  37. }
  38.  
  39.  
  40. BEGIN_MESSAGE_MAP(CBuildOptions, CDialog)
  41.     //{{AFX_MSG_MAP(CBuildOptions)
  42.     ON_WM_HELPINFO()
  43.     //}}AFX_MSG_MAP
  44.   ON_COMMAND(ID_HELP_FINDER,OnHelpInfo2)
  45.   ON_COMMAND(ID_HELP,OnHelpInfo2)
  46.     ON_COMMAND(ID_DEFAULT_HELP,OnHelpInfo2)
  47. END_MESSAGE_MAP()
  48.  
  49. /////////////////////////////////////////////////////////////////////////////
  50. // CBuildOptions message handlers
  51.  
  52. // Appel aide
  53. void CBuildOptions::OnHelpInfo2() {
  54.   (void) OnHelpInfo(NULL);
  55. }
  56.  
  57. BOOL CBuildOptions::OnHelpInfo(HELPINFO* dummy) 
  58. {
  59.   //return CDialog::OnHelpInfo(pHelpInfo);
  60.   HtsHelper->Help();
  61.   return true;
  62.   //AfxGetApp()->WinHelp(0,HELP_FINDER);    // Index du fichier Hlp
  63.   //return true;
  64. }
  65.  
  66. BOOL CBuildOptions::OnInitDialog() 
  67. {
  68.     CDialog::OnInitDialog();
  69.     
  70.   // Patcher l'interface pour les Franτais ;-)
  71.   if (LANG_T(-1)) {    // Patcher en franτais
  72.     SetWindowTextCP(this, LANG(LANG_Q1)); // struct
  73.     SetDlgItemTextCP(this, IDOK,LANG(LANG_OK ));
  74.     SetDlgItemTextCP(this, IDC_STATIC_options,LANG_O2);
  75.     SetDlgItemTextCP(this, IDCANCEL,LANG(LANG_CANCEL));  // cancel 
  76.   }
  77.   SetDlgItemTextCP(this, IDC_STATIC_bo1,LANG(LANG_Q2));
  78.   SetDlgItemTextCP(this, IDC_STATIC_bo2,LANG(LANG_Q3));
  79.  
  80.     return TRUE;  // return TRUE unless you set the focus to a control
  81.                   // EXCEPTION: OCX Property Pages should return FALSE
  82. }
  83.